<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css"
	type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
<!--
	function editD(departId) {
		document.getElementById("did").value = departId;
		return true;
	}
	function showO(departId) {
		document.getElementById("did").value = departId;
		return true;
	}
	function deleteD(departId) {

		if (!confirm("确定要删除该部门吗？")) {
			return false;
		}
		document.getElementById("did").value = departId;
		return true;
	}

	function doLogout() {
		adminLogoutForm.submit();
	}
//-->
</script>
</head>
<body>

	<%@include file="/view/adminMenu.jsp"%>

	<div class="midBox">
		<div class="midTitle">部门信息一览</div>
		<div class="cnt">

			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#E1E1E1">
				<tr>
					<td height="32" align="left" bgcolor="#FFFFFF" valign="middle"
						style="padding-left: 10px;"><b><span
							style="color: #666666">公告信息一览</span></b></td>
				</tr>
				<form:form name="departListForm" method="post"
					action="${contextPath}/departList.action"
					commandName="DepartListCommand">
					<form:hidden path="did" />
					<tr bgcolor="#FFFFFF">
						<td valign="top" align="center" height="25"
							style="padding-top: 5px;">
							<table width="95%" border="0" cellpadding="4" cellspacing="0"
								bgcolor="#E1E1E1">
								<tr bgcolor="#ffffff">
									<td style="text-align: right; width: 10%;">公告：</td>
									<td style="text-align: left; width: 15%"><form:select
											path="examId" items="${DepartListCommand.exams}" id="examId"
											itemLabel="name" itemValue="id">
										</form:select></td>
									<td style="text-align: right; width: 10%;">名称：</td>
									<td style="text-align: left; width: 15%"><form:input
											path="name" maxlength="32" size="15"
											cssClass="bbsInput_short" /></td>
								</tr>
								<tr bgcolor="#ffffff">
									<td style="text-align: center; width: 15%" colspan="4"><input
										type="submit" value="筛选" name="btnSearch" />&nbsp;&nbsp;<input
										type="submit" value="追加" name="btnAdd" />&nbsp;&nbsp;<input
										type="button" value="返回"
										onclick="javascript:document.location='${contextPath}/announcementList.action'" /></td>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td colspan="2" valign="top" align="center"
							style="padding-top: 5px; padding-bottom: 5px;">
							<table width="99%" border="0" cellpadding="4" cellspacing="1"
								bgcolor="#E1E1E1">
								<tr bgcolor="#f7f7f7">
									<th style="width: 7%;" nowrap="nowrap">序号</th>
									<th style="width: 33%;" nowrap="nowrap">名称</th>
									<th nowrap="nowrap">说明</th>
									<th style="width: 15%;" nowrap="nowrap"></th>
								</tr>
								<c:forEach items="${DepartListCommand.result}" var="depart"
									varStatus="status">
									<tr bgcolor="#ffffff">
										<td style="text-align: center" nowrap="nowrap">${status.index
											+ 1}</td>
										<td>${depart.name}</td>
										<td>${depart.description}</td>
										<td nowrap="nowrap"><input type="submit" value="修改"
											name="actionEditD" onclick="return editD('${depart.id}')"
											style="width: 50px;" />&nbsp;<input type="submit" value="删除"
											name="actionDeleteD"
											onclick="return deleteD('${depart.id}');"
											style="width: 50px;" />&nbsp;<input type="submit"
											value="岗位管理" name="actionShowOffice"
											onclick="return showO('${depart.id}')" style="width: 75px;" /></td>
									</tr>
								</c:forEach>
							</table>
						</td>
					</tr>
				</form:form>
			</table>
		</div>
	</div>
	<%@include file="/view/footer.jsp"%>
</body>
</html>